﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using TiPort.TiEntityObjects;
using TI;

namespace TiEntityObject.Notification
{
    public class NotificationLotAuctionProduct  
    {
        public Int64  LotSid { get; set; }

        [XmlElement("sid")]
        public Int64 Sid { get; set; }

        [XmlElement("code")]
        public string Code { get; set; }


        public long lCode { get {
            long l = 0;
            long.TryParse(Code, out l);
            return l;
        } }

        [XmlElement("ordinalNumber")]
        public long OrdinalNumber { get; set; }

        [XmlElement("productName")]
        public string ProductName { get; set; }

        [XmlElement("productRequirement")]
        [LinkObjectAttribute(ChildFieldName = "AuctionProductSid", IsPartialObject = true, ParentFieldName = "Sid")]
        public NotificationLotAuctionProductProductRequirement ProductRequirement { get; set; }
                
     }
}   
